<?php

namespace App\Transformers;


use App\Models\Attendance;
use App\Models\User;

class AttendanceTransformer extends Transformer
{
    public function transform(Attendance $attendance)
    {


        return [
            'attendance_no'     => $attendance->attendance_no,
            'name'              => $attendance->name,
            'department_name'   => $attendance->department_name,
            'start_time'        => $attendance->start_time,
            'end_time'          => $attendance->end_time,
            'attendance_time'   => $attendance->attendance_time,
            'define_attendance_time'    => $attendance->define_attendance_time,
            'percentage'        => $attendance->percentage,

        ];
    }
}
